<template>
  <div>数组</div>
</template>

<script>
let arrayA = [];
let arrayB = [];

for (let i = 0; i <= 100; i++) {
  arrayA.push(i);
  arrayB.push(i);
}
let begin = new Date();

console.log(arrayA);

// let dataObject = {};
// arrayB.forEach(b => {
//   dataObject[b] = b;
// });

// arrayA.forEach(a => {
//   console.log(dataObject[a]);
// });
arrayA.forEach(a => {
  arrayB.forEach(b => {
    if (a == b) {
      console.log(a);
    }
  });
});
let end = new Date();
console.log("时间是 ----> ");

console.log(end - begin);

export default {};
</script>

<style>
</style>